package com.william.jdbcplus.core.util.datameta;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Builder
@ApiModel("表列信息")
public class TableMetaColumnInfo {
    @ApiModelProperty(value = "表名")
    private String tableName;

    @ApiModelProperty(value = "列名")
    private String columnName;

    @ApiModelProperty(value = "列数据类型")
    private Integer dataType;

    @ApiModelProperty(value = "列数据名称")
    private String dataTypeName;

    @ApiModelProperty(value = "列大小")
    private Integer columnSize;

    @ApiModelProperty(value = "小数位数")
    private Integer decimalDigits;

    @ApiModelProperty(value = "基数（通常是10或2）")
    private Integer numPrecRadix;

    @ApiModelProperty(value = "是否允许为null")
    private Boolean nullAble;

    @ApiModelProperty(value = "列描述")
    private String columnRemarks;

    @ApiModelProperty(value = "默认值")
    private String columnDef;

    @ApiModelProperty(value = "sql数据类型")
    private Integer sqlDataType;

    @ApiModelProperty(value = "SQL日期时间分")
    private Integer sqlDatetimeSub;

    @ApiModelProperty(value = "char类型的列中的最大字节数")
    private Integer charOctetLength;

    @ApiModelProperty(value = "表中列的索引")
    private Integer ordinalPosition;

    @ApiModelProperty(value = "是否可空")
    private String isNullAble;

    @ApiModelProperty(value = "是否自动递增")
    private String isAutoincrement;
}
